function [ electrodes ] = GetElectrodesBySubject( subject )
%GETELECTRODES 
%   [ electrodes ] = GetElectrodesBySubject( subject )

if ~(nargin==1); help GetElectrodesBySubject; error('Incorrect number of arguments'); end;

global Database;

cCode = strcmp(Database.subjects_header, 'Code');
rSubject = strcmp({Database.subjects{:,cCode}}, subject);
if ~any(rSubject); error(['Subject ''' subject ''' not found']); end

cElectrodes = strcmp(Database.subjects_header, 'Electrodes');
electrodes = Database.subjects{rSubject, cElectrodes};

end